// 导入获取数据自定义hooks
import Pubilsh from '../../../components/publish-manage/Pubilsh'
// 导入表格组件
import ArticlePublish from '../../../components/publish-manage/ArticlePublish'
import { Button } from 'antd'

export default function Unpublished() {
    // 从hooks中取要使用的值
    const {dataSource,total,handlePublish,changePage} = Pubilsh(2,1)
    return (
        <div>
           <ArticlePublish
                dataSource={dataSource}
                total={total}
                button={(id) => <Button type="primary" onClick={() => handlePublish(id)}>
                    发布
                </Button>}
                changePage={(a,b) =>{
                    changePage(a,b)
                }}
            >
            </ArticlePublish>
        </div>
    )
}
